Last Updated 10/28/2022

Sage Essentials
Section 8: Differential Equations

System of DE

The desolve_system()command.

Example 4

Solve the IVP { x + 10 x 4 y = 0 4 x + y + 4 y = 0 , x ( 0 ) = 0 ,   x ( 0 ) = 1 , and y ( 0 ) = 0 ,   y ( 0 ) = 1 .

 

Suppose x and y are functions in t.

 

 

Encode the two DE as de1 and de2.

 

Solve the system with the desolve_system()command with the initial conditions encoded in the form of [ 0,x( 0 ),y( 0 ), x ( 0 ), y ( 0 ) ] .

Try this!

Solve the IVP { x =x+y y =2x , x( 0 )=0 , and y( 0 )=1 .


← Previous Example Next Example →